<%@include file="/head.jsp" %>
<%
    if(session.getAttribute("nombre") != null ) {
%>
<jsp:forward page="index.jsp"/>        
<%    }
    String message = (String) request.getAttribute("message");
    String email = (String) request.getAttribute("email");
    if(message==null)message="";
    if(email==null)email="";
%>
<div id="content">
        <h1> WebOrder:</h1>
        <h6 style="text-align: center;color:red;"><%=message%></h6>
        <form action="Login" method="post">
            <fieldset style="text-align:center">
                <legend>Login</legend>
                <table>
                    <tr>
                        <td>Email:</td>
                        <td><input type="text" name="email" value="<%=email%>"/></td>
                    </tr>
                    <tr>
                        <td>Password</td>
                        <td><input type="password" name="password"/></td>
                    </tr>
                </table>
                    <br/>
                <input type="submit" value="Iniciar sesion"/>
            </fieldset>
        </form>
        <br/>
        <form action="registrar.jsp">
            <input type="submit" value="Registrarse">
        </form>
</div>
</div>
    </body>
</html>
